﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login2.aspx.cs" Inherits="Login2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>系统登录</title>

    <style type="text/css">
        *
        {
            margin: 0px;
            padding: 0px;
        }
        body
        {
            background-color: #f5f6fa;
            text-align: center;
        }
        html, body
        {
            height: 100%;
            width: 100%;
            margin: 0;
            overflow: hidden;
        }
        .main
        {
            margin: 0 auto;
        }
        .containdiv
        {
            background-color: #e0e7ed;
            height: 317px;
            position: relative;
            text-align: center;
        }
        .regdiv
        {
            position: absolute;
            bottom: 0px;
            height: 330px;
            width: 543px;
            background-image: url("images/login/login_center.png");
        }
        .regdiv .logoImg
        {
            margin-left: -93px;
        }
        .regdiv .p1
        {
            width: 543px;
            overflow: hidden;
            text-align: left;
            padding: 40px 0px 10px 120px;
            float: left;
            line-height: 42px;
            font-family: "微软雅黑";
            font-size: 16px;
            color: White;
        }
        .regdiv .p1 input
        {
            width: 226px;
            height: 18px;
            line-height: 18px;
            background: url(images/login/logo1_input.png) repeat-y;
            border: solid 1px #d0d0d0;
            padding: 0px;
        }
        .regdiv .p1 .btn
        {
            width: 147px;
            height: 31px;
            background: url(images/login/login_btn1.png);
            border: none;
            margin-top: 22px;
            margin-left: 70px;
        }
        .regdiv .p1 .btn:hover
        {
            width: 147px;
            height: 31px;
            background: url(images/login/login_btn.png);
            border: none;
            margin-top: 22px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
        <div id='container' class="containdiv">
            <div id="reg" class="regdiv">
                <img class="logoImg" src="images/login/login1_logo.png" />
                <p class="p1">
                    用户名：<input name="" type="text" runat="server" onfocus="this.select();" id="ipt_Name" /><br />
                    密<span style="margin-left: 16px;">码</span>：<input name="" runat="server" id="ipt_Pwd"
                        type="password" /><br />
                    <input class="btn" name="" type="button" runat="server" onserverclick="Login" id="Btn_Submit" />
                </p>
            </div>
        </div>
    </div>
    </form>

    <script src="JavaScript/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        function change() {
            var divH = document.getElementById("container").clientHeight;
            var FH = (document.body.clientHeight - divH) / 2;
            document.getElementById("container").style.marginTop = FH + 'px';

            var divW = document.getElementById("reg").clientWidth;
            var FW = (document.body.clientWidth - divW) / 2;
            document.getElementById("reg").style.left = FW + 'px';
        }
        window.onload = change;
        window.onresize = change;
        //增加页面回车按键处理
        function keyDown() {
            var keycode = event.keyCode;
            var keyChar = String.fromCharCode(keycode);
            if (keycode == 13)
                event.keyCode = 9;
        };
        document.onkeydown = keyDown;
        
    </script>

</body>
</html>
